﻿using UnityEditor;
using UnityEngine;

namespace UFrame
{
    [CustomEditor(typeof(CalRectTranformSize))]
    public class CalRectTranformSizeEditor : Editor
    {
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();

            if (GUILayout.Button("计算"))
            {
                CalRectTranformSize size = target as CalRectTranformSize;
                size.CalSize();
            }
        }
    }
}